#include "BackgroundLayer.h"
#include "StaticData.h"

USING_NS_CC;
bool BackgroundLayer::init()
{
	if(CCLayer::init()){
		CCSize winSize=CCDirector::sharedDirector()->getWinSize();
		CCSprite* background=CCSprite::createWithSpriteFrameName(StaticData::getInstance()->stringFromKey("background"));
		background->setPosition(CCPointMake(winSize.width*0.5,winSize.height*0.5));
		addChild(background);
		return true;
	}
	return false;
}
